import React from 'react'
import {withRouter} from 'react-router-dom'



@withRouter
class AutoRoute extends React.Component {

    componentDidMount() {
        const initRoute = this.props.location.pathname
        if(initRoute === '/'){
            this.props.history.push('/home')
        }
    }
    render() {
        return (
            <div>
                
            </div>
        )
    }
}

export default AutoRoute